//
//  Book.h
//  ebook
//
//  Created by 吴超飞 on 16/2/23.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Book : NSObject<NSCoding>

@property (nonatomic, copy) NSString *bookid;
@property (nonatomic, copy) NSString *siteid;
@property (nonatomic, copy) NSString *bookname;
@property (nonatomic, copy) NSString *coverpicurl;
@property (nonatomic, copy) NSString *author;
@property (nonatomic, copy) NSString *updatetime;

@property (nonatomic, copy) NSString *firstchapterid;
@property (nonatomic, copy) NSString *firstchaptername;

@property (nonatomic, copy) NSString *toptime;
@property (nonatomic, copy) NSString *display;

@property (nonatomic, copy) NSString *chaptercount;//服务器返回的当前总章数
@property (nonatomic, copy) NSString *lasthaptercount;//上次阅读时书本的总章数

@property (nonatomic, copy) NSString *dpercent;//缓存％
@property (nonatomic, copy) NSString *rchaptername;//已读到的章节
@property (nonatomic, copy) NSString *rposition;//阅读位置的章节序号，防止更新章节后阅读百分比还是显示100%之类的问题
@property (nonatomic, copy) NSString *fullflag;//图书状态：0连载中   1已完结
@property (nonatomic, copy) NSString *readingtime;//读书时间

//YES:推荐数据
@property (nonatomic, assign) BOOL isrecommend;
////是否在自己的网络书架中
//@property (nonatomic, assign) BOOL isinnetstore;

-(id)initWithDictionary:(NSDictionary *)dic;

@end
